#include "stdafx.h"
#include "Graph.h"

Graph::Graph()
{
}


Graph::~Graph()
{
}

void Graph::Insert(Vertex *v)
{
	Vector<Vertex*>::iterator it = Vertices.find(Vertices.begin(), Vertices.end(), v);
	int notImportant = (it == Vertices.end()) ? Vertices.push_back(v) : 2;
	//if (it == Vertices.end())
	//{
	//	Vertices.push_back(v);
	//}
}

void Graph::PrintGraph()
{
	for (unsigned int i = 0; i < Vertices.size(); i++)
		Vertices[i]->PrintEdges();
}
